package com.huk.chengka.ckf.entity;

import cn.hutool.core.collection.CollUtil;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

/**
 * @author huk
 * @date 2024/1/17 16:35
 * @Description $
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class CkResponse {

    public static final Integer INVALID_CODE_1 = 2001;
    public static final Integer INVALID_CODE_2 = 2002;
    public static final Integer PARAM_ERROR_1 = 5112;
    public static final Integer OK_CODE_1 = 5104;

    private Integer errorCode;
    private String errorMsg;
    private Object expire;

    public static List<Integer> invalidCodeList(){
        ArrayList<Integer> invalidCodeList = CollUtil.newArrayList();
        invalidCodeList.add(INVALID_CODE_1);
        invalidCodeList.add(INVALID_CODE_2);
        return invalidCodeList;
    }

}
